/*
 * ErrorOutputs.h
 *
 *  Created on: 26.04.2009
 *      Author: markus
 *
 *  A central file where all error outputs should be defined.
 *
 */

#ifndef _ERROROUTPUTS_H__
#define _ERROROUTPUTS_H__
#include <exception>

#define writeDebugOutput(strText) writeDebugOutputF(__FUNCTION__, strText);
#define writeExceptionOutput(strText) writeExceptionOutputF(__FUNCTION__, strText); throw(std::runtime_error(std::string(__FUNCTION__)+ ": " + strText));

#include <string>

void writeExceptionOutputF(std::string strFunctionName, std::string strText);

void writeDebugOutputF(std::string strFunctionName, std::string strText/*, bool bHeader = true*/);


#endif /* ERROROUTPUTS_H_ */
